<?php
class MailController extends Zend_Controller_Action
{
    public function init()
    {
        $this->_helper->layout()->setLayout('index-layout');
    }


    public function sendmailAction()
    {
        $text = $this->_getParam('text');
        $who_mail = $this->_getParam('who_mail');
        $who_name = $this->_getParam('who_name');
        $whom_mail = $this->_getParam('whom_mail');
        $whom_name = $this->_getParam('whom_name');
        $subject = $this->_getParam('subject');

//        $sendMail = new Managers\Mail();
//        $sendMail->sendMail($text, $subject, $who_mail, $who_name, $whom_mail, $whom_name);
        die;
    }

    public function subscribeAction()
    {
        /*тут форма добавления на подписку*/
    }

//    public function testAction()
//    {
//        $t = new Managers\Mail();
//        $e = $t->upMailTime(7, 30);
//        die;
//    }
}
